package com.ruoyi.common.workflow.service.impl;

import com.ruoyi.common.workflow.service.IBusinessStatusService;
import com.ruoyi.workflow.api.RemoteActBusinessStatusService;
import com.ruoyi.workflow.api.domain.ActBusinessStatus;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BusinessStatusServiceImpl implements IBusinessStatusService {

    @DubboReference
    private RemoteActBusinessStatusService remoteActBusinessStatusService;

    @Override
    public ActBusinessStatus getInfoByBusinessKey(String businessKey) {
        return remoteActBusinessStatusService.getInfoByBusinessKey(businessKey);
    }

    @Override
    public List<ActBusinessStatus> getListInfoByBusinessKey(List<String> businessKeys) {
        return remoteActBusinessStatusService.getListInfoByBusinessKey(businessKeys);
    }
}
